<?php

namespace App\Http\Controllers\User;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;

class BackgroundController extends Controller
{
    //

    public function getBackground()
    {
        try
        {
            $backgrounds = DB::table('background')->get();

            return json_encode(['code'=>1, 'msg'=>'get success','data' => $backgrounds]);
        }
        catch (\Exception $exception)
        {

        }
    }
}
